import HttpClient from '../utils/httpClient'

export const getAllUser = (userId) => {
  return HttpClient.get('/posts/')
}

export const getOneUser = (id) => {
  return HttpClient.get('/posts/', {
    params: {
      id,
    },
  })
}

export const postOneUser = (id, name, sex) => {
  return HttpClient.post('/add/post', {
    user_Id: id,
    user_name: name,
    user_sex: sex,
  })
}
